home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_5655.txt < prev    next >
Text File  |  1994-03-01  |  541b  |  14 lines

  1. 5 ONERRORGOTO900
  2. 20 MODE8:DIM:a=0:b=0:r=0:h=0:c$=CHR$(5)
  3. 30 CLS:PRINT"2ãrh+ã(aý+bý)    h:height";
  4. 50 s$="h":z=h:GOSUB500:h=z
  5. 51 CLS:PRINT"2ãrh+ã(aý+bý)    a:b:r:radius";
  6. 52 s$="a":z=a:GOSUB500:a=z
  7. 53 s$="b":z=b:GOSUB500:b=z
  8. 54 s$="r":z=r:GOSUB500:r=z
  9. 60 LOCATE0,1:PRINTc$;"Surface =";PI*(2*r*h+a^2+b^2);:z$=INPUT$(1,@):GOTO30
  10. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz<0 THEN500 ELSERETURN
  11. 900 IFERR=1 THENCLS:ONERRORGOTO0
  12. 910 IFERL=500 THENRESUME500
  13. 920 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME30
  14.